package AoppractiseDemo.dao;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
@Component
public class bookdao {
    public void save(){
        Long startTime=System.currentTimeMillis();
        for(int i=0;i<10000;i++){
            System.out.println("book dao save");
        }

        Long endTime=System.currentTimeMillis();
        Long totalTime=endTime-startTime;
        System.out.println("执行万次消耗时间:"+totalTime);
    }

    public void update(){
        System.out.println("book dao update...");
    }
    public void delete(){
        System.out.println("book dao delete...");
    }
    public void select(){
        System.out.println("book dao select...");
    }

}
